package com.yc.qunxing.clients;

import com.yc.qunxing.clients.impl.DriverActionImpl;
import com.yc.qunxing.entity.DriverVehicles;
import com.yc.qunxing.entity.Drivers;
import com.yc.qunxing.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "qunxing-driver", fallback = DriverActionImpl.class)
@Component
public interface DriverAction {
    @PutMapping("/drivers/updateDriverStatus")
    Result<String> UpdateDriverStatus(@RequestBody Drivers drivers);
    @GetMapping("/drivers/getById")
    public Result<Drivers> GetById(@RequestParam Integer driverId);
    @GetMapping("/drivers/getVerById")
    public Result<DriverVehicles> GetVerById(@RequestParam Integer driverId);
}
